package com.itheima_23;

/**
 * 测试类
 */
public class Demo {
    public static void main(String[] args) {
        PingPangPlayer ppp = new PingPangPlayer();
        ppp.setName("wanghao");
        ppp.setAge(30);
        ppp.eat();
        ppp.study();
        ppp.speak();


        BasketBallPlayer bbb = new BasketBallPlayer();
        bbb.setName("yaoming");
        bbb.setAge(40);
        bbb.eat();
        bbb.study();
    }
}
